package top.callname.service;

import top.callname.bean.NoticeBean;
import top.callname.bean.NoticePageList;
import top.callname.bean.RspInfoBean;

public interface NoticeService {

	/**
	 * 分页查询
	 * @param pageNow
	 * @param pid
	 * @return
	 */
	NoticePageList getListByPid(int pageNow , Integer pid);
	
	
	/**
	 * 新增公告 ，定时发送
	 * @param noticeBean
	 * @return RspInfoBean
	 */
	RspInfoBean addNoticeTask(NoticeBean noticeBean);
	
	/**
	 * 新增公告 然后发送
	 * @param noticeBean
	 * @return RspInfoBean
	 */
	RspInfoBean addNoticeAndSend(NoticeBean noticeBean);
	
	/**
	 * 推送消息
	 */
	void sendNoticeTask();
	
	NoticeBean getNewNoticeByCid(Integer cid);
	
	/**
	 * 关闭公告
	 * @param id
	 * @return
	 */
	RspInfoBean closeNotice(Integer id);
	
	RspInfoBean deleteNotice(Integer id);
}
